const router = require('koa-router')()
const userController = require('../controllers/userController')
router.prefix('/users')

router.get('/', async function (ctx, next) {
	let res = await userController.showUsers(ctx)
	console.log(res)
  	ctx.body = {
  		userList: res
  	}

})

router.get('/bar', function (ctx, next) {
  ctx.body = 'this is a users/bar response'
})

module.exports = router
